<html>
<head>
 <!--
    CPAINT (Cross-Platform Asynchronous INterface Toolkit) - Version 2

    http://sf.net/projects/cpaint
    
    released under the terms of the GPL
    see http://www.fsf.org/licensing/licenses/gpl.txt for details

    authors:  Paul Sullivan <wiley14@gmail.com>, Dominique Stender <dstender@st-webdevelopment.de>
    Copyright (c) 2005-2006 Paul Sullivan, Dominique Stender - http://sf.net/projects/cpaint
  //-->
	<title>AJAX chat</title>
	<script type="text/javascript" src="../../cpaint2.inc.compressed.js"></script>
	<script type="text/javascript" src="js/chat.js"></script>
	<link rel="stylesheet" type="text/css" href="chat.css" />
</head>
<body>
	<form action="#" id="chat" onSubmit="return chat()">
		<p> Chat History:</p>
		<textarea id="chat_history" readonly="readonly" style="width: 450px; height: 300px;"></textarea>
		<textarea id="chat_subscriber_list" readonly="readonly" style="width: 150px; height: 300px;"></textarea><br />
		<input type="text" id="chat_line" style="width: 400px; " /><input type="submit" value="send" style="width: 50px; " /><br />
		<p>Your Nickname: </p>
		<input type="text" id="chat_nickname" value="anonymous" style="200px; "/>
		<input type="button" onClick="requestNicknameChange()" value="change nickname" />
	</form>
	<script type="text/javascript">
	<!--
		// initialization
		var chat_line		= document.getElementById('chat_line');
		var chat_history	= document.getElementById('chat_history');
		var chat_nickname	= document.getElementById('chat_nickname');
		var current_nickname	= 'anonymous';
		var chat_subscriber_list= document.getElementById('chat_subscriber_list');

		var intvl		= window.setInterval('requestHistory()', refreshInterval);
	//-->
	</script>
	<div class="footer">
		(c) 2005, Dominique Stender | AJAX demonstration (Asynchronous JavaScript And XML): chat version 1.0.0
	</div>
</body>
</html>
